/*    */ package com.zimbra.cs.service;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class UserServletException
/*    */   extends Exception
/*    */ {
/*    */   private int mCode;
/*    */   
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   public UserServletException(int code, String message)
/*    */   {
/* 25 */     super(message);
/* 26 */     this.mCode = code;
/*    */   }
/*    */   
/*    */   public UserServletException(int code, String message, Throwable cause) {
/* 30 */     super(message, cause);
/* 31 */     this.mCode = code;
/*    */   }
/*    */   
/*    */   public int getHttpStatusCode() {
/* 35 */     return this.mCode;
/*    */   }
/*    */   
/*    */   public static UserServletException notImplemented(String message) {
/* 39 */     return new UserServletException(501, message);
/*    */   }
/*    */   
/*    */   public static UserServletException badRequest(String message) {
/* 43 */     return new UserServletException(400, message);
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/service/UserServletException.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */